package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from user where openid=#{openId}")
    User selectByOpenId(String openId);

    void save(User user);

    //测试缓存注解
    @Select("select  * from  user  where id =#{userId}")
    User selectById(Long userId);
}